package com.k.ums.model;

import lombok.Data;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * @Description:
 * @Author: kt
 * @CreateTime: 2022/1/17
 */
@Data
public class MenuTree {
    private Long id;
    private String name;
    private String path;
    private Long parentId;
    private List<MenuTree> childrens = Collections.emptyList();

    public MenuTree(Long id, String name, String path, Long parentId) {
        this.id = id;
        this.name = name;
        this.path = path;
        this.parentId = parentId;
    }
}
